package com.example.lenovo.myapplication;

import android.os.Binder;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by yls on 2018/12/17.
 */

public class MyBinder extends Binder{

 public int add(int a, int b){
     return a+b;
 }
public String getTime(){
     Date date= new Date();
     SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd  hh:dd:ss");
     return format.format(date);
    }
    public String reverse(String str){
        String stringBuffer=new StringBuffer(str).reverse().toString();
        return stringBuffer;
    }
}
